package c.e.a.b.e.c;

import android.content.Context;
import android.os.Bundle;
import c.e.a.b.e.c.g.a;

/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */
public final class j extends a {
    public final /* synthetic */ String e;
    public final /* synthetic */ String f;
    public final /* synthetic */ Context g;
    public final /* synthetic */ Bundle h;
    public final /* synthetic */ g i;

    public j(g gVar, String str, String str2, Context context, Bundle bundle) {
        this.i = gVar;
        this.e = str;
        this.f = str2;
        this.g = context;
        this.h = bundle;
        super(true);
    }

    /* JADX WARNING: Removed duplicated region for block: B:17:0x003d A:{Catch:{ a -> 0x004e }} */
    /* JADX WARNING: Removed duplicated region for block: B:15:0x003a A:{SYNTHETIC, Splitter:B:15:0x003a} */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x0064 A:{Catch:{ Exception -> 0x00a4 }} */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x005a A:{Catch:{ Exception -> 0x00a4 }} */
    public final void a() {
        /*
        r14 = this;
        r0 = 0;
        r1 = 1;
        r2 = r14.e;	 Catch:{ Exception -> 0x00a4 }
        r3 = r14.f;	 Catch:{ Exception -> 0x00a4 }
        r2 = c.e.a.b.e.c.g.e(r2, r3);	 Catch:{ Exception -> 0x00a4 }
        r3 = 0;
        if (r2 == 0) goto L_0x0019;
    L_0x000d:
        r2 = r14.f;	 Catch:{ Exception -> 0x00a4 }
        r4 = r14.e;	 Catch:{ Exception -> 0x00a4 }
        r5 = r14.i;	 Catch:{ Exception -> 0x00a4 }
        r5 = r5.a;	 Catch:{ Exception -> 0x00a4 }
        r11 = r2;
        r10 = r4;
        r9 = r5;
        goto L_0x001c;
    L_0x0019:
        r9 = r3;
        r10 = r9;
        r11 = r10;
    L_0x001c:
        r2 = r14.g;	 Catch:{ Exception -> 0x00a4 }
        c.e.a.b.e.c.g.d(r2);	 Catch:{ Exception -> 0x00a4 }
        r2 = c.e.a.b.e.c.g.j;	 Catch:{ Exception -> 0x00a4 }
        r2 = r2.booleanValue();	 Catch:{ Exception -> 0x00a4 }
        if (r2 != 0) goto L_0x002e;
    L_0x0029:
        if (r10 == 0) goto L_0x002c;
    L_0x002b:
        goto L_0x002e;
    L_0x002c:
        r2 = 0;
        goto L_0x002f;
    L_0x002e:
        r2 = 1;
    L_0x002f:
        r4 = r14.i;	 Catch:{ Exception -> 0x00a4 }
        r5 = r14.g;	 Catch:{ Exception -> 0x00a4 }
        java.util.Objects.requireNonNull(r4);	 Catch:{ Exception -> 0x00a4 }
        r6 = "com.google.android.gms.measurement.dynamite";
        if (r2 == 0) goto L_0x003d;
    L_0x003a:
        r7 = com.google.android.gms.dynamite.DynamiteModule.k;	 Catch:{ a -> 0x004e }
        goto L_0x003f;
    L_0x003d:
        r7 = com.google.android.gms.dynamite.DynamiteModule.i;	 Catch:{ a -> 0x004e }
    L_0x003f:
        r5 = com.google.android.gms.dynamite.DynamiteModule.c(r5, r7, r6);	 Catch:{ a -> 0x004e }
        r7 = "com.google.android.gms.measurement.internal.AppMeasurementDynamiteService";
        r5 = r5.b(r7);	 Catch:{ a -> 0x004e }
        r3 = c.e.a.b.e.c.fc.asInterface(r5);	 Catch:{ a -> 0x004e }
        goto L_0x0052;
    L_0x004e:
        r5 = move-exception;
        r4.b(r5, r1, r0);	 Catch:{ Exception -> 0x00a4 }
    L_0x0052:
        r4.h = r3;	 Catch:{ Exception -> 0x00a4 }
        r3 = r14.i;	 Catch:{ Exception -> 0x00a4 }
        r3 = r3.h;	 Catch:{ Exception -> 0x00a4 }
        if (r3 != 0) goto L_0x0064;
    L_0x005a:
        r2 = r14.i;	 Catch:{ Exception -> 0x00a4 }
        r2 = r2.a;	 Catch:{ Exception -> 0x00a4 }
        r3 = "Failed to connect to measurement client.";
        android.util.Log.w(r2, r3);	 Catch:{ Exception -> 0x00a4 }
        return;
    L_0x0064:
        r3 = r14.g;	 Catch:{ Exception -> 0x00a4 }
        r3 = com.google.android.gms.dynamite.DynamiteModule.a(r3, r6);	 Catch:{ Exception -> 0x00a4 }
        r4 = r14.g;	 Catch:{ Exception -> 0x00a4 }
        r4 = com.google.android.gms.dynamite.DynamiteModule.d(r4, r6, r0);	 Catch:{ Exception -> 0x00a4 }
        if (r2 == 0) goto L_0x007d;
    L_0x0072:
        r2 = java.lang.Math.max(r3, r4);	 Catch:{ Exception -> 0x00a4 }
        if (r4 >= r3) goto L_0x007a;
    L_0x0078:
        r3 = 1;
        goto L_0x007b;
    L_0x007a:
        r3 = 0;
    L_0x007b:
        r8 = r3;
        goto L_0x0087;
    L_0x007d:
        if (r3 <= 0) goto L_0x0080;
    L_0x007f:
        r4 = r3;
    L_0x0080:
        if (r3 <= 0) goto L_0x0084;
    L_0x0082:
        r2 = 1;
        goto L_0x0085;
    L_0x0084:
        r2 = 0;
    L_0x0085:
        r8 = r2;
        r2 = r4;
    L_0x0087:
        r13 = new com.google.android.gms.internal.measurement.zzae;	 Catch:{ Exception -> 0x00a4 }
        r4 = 33025; // 0x8101 float:4.6278E-41 double:1.63165E-319;
        r6 = (long) r2;	 Catch:{ Exception -> 0x00a4 }
        r12 = r14.h;	 Catch:{ Exception -> 0x00a4 }
        r3 = r13;
        r3.m8194init(r4, r6, r8, r9, r10, r11, r12);	 Catch:{ Exception -> 0x00a4 }
        r2 = r14.i;	 Catch:{ Exception -> 0x00a4 }
        r2 = r2.h;	 Catch:{ Exception -> 0x00a4 }
        r3 = r14.g;	 Catch:{ Exception -> 0x00a4 }
        r4 = new c.e.a.b.c.b;	 Catch:{ Exception -> 0x00a4 }
        r4.m7964init(r3);	 Catch:{ Exception -> 0x00a4 }
        r5 = r14.a;	 Catch:{ Exception -> 0x00a4 }
        r2.initialize(r4, r13, r5);	 Catch:{ Exception -> 0x00a4 }
        return;
    L_0x00a4:
        r2 = move-exception;
        r3 = r14.i;
        r3.b(r2, r1, r0);
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.e.c.j.a():void");
    }
}
